import os

filelist = os.listdir(r"C:\Users\15436\Desktop\stopwords-master")
data = []
sums = 0
for fn in filelist:
    path = os.path.join(r"C:\Users\15436\Desktop\stopwords-master",fn)
    with open(path,"r",encoding="utf-8") as f:
        temp = f.read().splitlines()
        data.extend(temp)
        sums += len(temp)
print(len(data))
print(sums)
data = list(set(data))
print(len(data))
with open("./stopwords.txt","a+",encoding="utf-8") as s:
    for d in data:
        s.write(d+"\n")